package businessObject;

import data.IMascotaDAO;
import data.JDBCMascotaDAO;
import dataTransferObject.Mascota;

public class GestionMascota {
	
	private static GestionMascota mascota;

	public static synchronized GestionMascota getInstance() {
		if (mascota == null) {
			mascota = new GestionMascota();
		}
		return mascota;
	}
	
	public static Mascota getMascota(Integer IdMascota){
		
		IMascotaDAO dao=new JDBCMascotaDAO();
		return dao.selectMascota(IdMascota);
		
	}

}
